package com.core.zyyz.amc.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.core.zyyz.amc.modules.mapper.AmcCusBaseInfoBMapper;
import com.core.zyyz.amc.modules.domain.AmcCusBaseInfoB;
import com.core.zyyz.amc.modules.service.AmcCusBaseInfoBService;

/**
 * 客户基本信息Service业务层处理
 *
 * @author lfs
 * @date 2024-11-26
 */
@Service
public class AmcCusBaseInfoBServiceImpl implements AmcCusBaseInfoBService
{
    @Autowired
    private AmcCusBaseInfoBMapper amcCusBaseInfoBMapper;

    /**
     * 查询客户基本信息
     *
     * @param customerId 客户基本信息主键
     * @return 客户基本信息
     */
    @Override
    public AmcCusBaseInfoB selectAmcCusBaseInfoBByCustomerId(String customerId)
    {
        return amcCusBaseInfoBMapper.selectAmcCusBaseInfoBByCustomerId(customerId);
    }

    @Override
    public AmcCusBaseInfoB selectByCustomerNumber(String customerNumber)
    {
        return amcCusBaseInfoBMapper.selectByCustomerNumber(customerNumber);
    }

    /**
     * 查询客户基本信息列表
     *
     * @param amcCusBaseInfoB 客户基本信息
     * @return 客户基本信息
     */
    @Override
    public List<AmcCusBaseInfoB> selectAmcCusBaseInfoBList(AmcCusBaseInfoB amcCusBaseInfoB)
    {
        return amcCusBaseInfoBMapper.selectAmcCusBaseInfoBList(amcCusBaseInfoB);
    }

    /**
     * 新增客户基本信息
     *
     * @param amcCusBaseInfoB 客户基本信息
     * @return 结果
     */
    @Override
    public int insertAmcCusBaseInfoB(AmcCusBaseInfoB amcCusBaseInfoB)
    {
        return amcCusBaseInfoBMapper.insertAmcCusBaseInfoB(amcCusBaseInfoB);
    }

    /**
     * 修改客户基本信息
     *
     * @param amcCusBaseInfoB 客户基本信息
     * @return 结果
     */
    @Override
    public int updateAmcCusBaseInfoB(AmcCusBaseInfoB amcCusBaseInfoB)
    {
        return amcCusBaseInfoBMapper.updateAmcCusBaseInfoB(amcCusBaseInfoB);
    }

    /**
     * 批量删除客户基本信息
     *
     * @param customerIds 需要删除的客户基本信息主键
     * @return 结果
     */
    @Override
    public int deleteAmcCusBaseInfoBByCustomerIds(String[] customerIds)
    {
        return amcCusBaseInfoBMapper.deleteAmcCusBaseInfoBByCustomerIds(customerIds);
    }

    /**
     * 删除客户基本信息信息
     *
     * @param customerId 客户基本信息主键
     * @return 结果
     */
    @Override
    public int deleteAmcCusBaseInfoBByCustomerId(String customerId)
    {
        return amcCusBaseInfoBMapper.deleteAmcCusBaseInfoBByCustomerId(customerId);
    }
}
